package com.icedevcloud.upms.api.user;

import com.icedevcloud.common.core.api.R;
import com.icedevcloud.common.core.constant.ServiceNameConstants;
import com.icedevcloud.upms.api.user.dto.QueryUserResDto;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * 用户远程调用 FeignService
 * </p>
 *
 * @author dengbing
 * @since 2023-08-12
 */
@Tag(name = "用户远程调用")
@FeignClient(
        contextId = "ISysUserFeignService",
        value = ServiceNameConstants.UPMS,
        path = "/provider/sysUser"
)
public interface ISysUserProvider {

    @Operation(summary = "根据用户名查询用户信息接口")
    @PostMapping("/queryUserByUsername")
    R<QueryUserResDto> queryUserByUsername(@RequestParam(name = "username") String username);

}
